package com.dg.cuckoo.admin.repository;

import com.dg.cuckoo.admin.dto.acceptance.AcceptanceDto;
import com.dg.cuckoo.core.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AcceptanceRepository extends BaseRepository<AcceptanceDto,String> {

    AcceptanceDto findByProjectName(String projectName);

    @Query(value = "select * from acceptance limit ?,?",nativeQuery = true)
    List<AcceptanceDto> page(Integer page,Integer pageSize);

}
